package com.demo2do.fms.admin.entity.export.business;

import java.util.Date;

import com.demo2do.fms.entity.business.shipment.TransportCost;
import com.demo2do.fms.entity.driver.Employee;
import com.demo2do.fms.entity.vehicle.source.Vehicle;

/**
 * 头部信息
 *
 * @author Ark
 *
 */
public class ExpenseSheetHeader {

    /** 公司名 */
    private String companyName;
    
    /** 报销单号 */
    private String senquenceCode;
    
    /** 车号 */
    private String carCode;
    
    /** 报销日期 */
    private Date date;
    
    /** 油耗 */
    private String oilConsumption;
    
    /** 轮胎/修理 */
    private String tyre;
    
    /** 主驾 */
    private String mainEmployee;
    
    /** 第一副驾 */
    private String firstEmployee;
    
    /**
     * The default constructor
     */
    public ExpenseSheetHeader() {
    }
    
    /**
     * 
     * @param companyName
     * @param senquenceCode
     * @param vehicle
     * @param transportCost
     * @param mainEmployee
     * @param firstEmployee
     */
    public ExpenseSheetHeader(String companyName, String senquenceCode, Vehicle vehicle, TransportCost transportCost, Employee mainEmployee, Employee firstEmployee) {
        this.companyName = companyName;
        this.senquenceCode = senquenceCode;
        this.carCode = vehicle.getCode() + " - " + vehicle.getName();
        this.date = new Date();
        this.oilConsumption = transportCost.getFullOilUsagePerKm() + "/" + transportCost.getEmptyOilUsagePerKm();
        this.tyre = transportCost.getTyreFeePerKm() + "/" + transportCost.getRepairFeePerKm();
        this.mainEmployee = mainEmployee.getCode() + " - " + mainEmployee.getName();
        if(firstEmployee != null) {
            this.firstEmployee = firstEmployee.getCode() + " - " + firstEmployee.getName();
        }
    }

    /**
     * @return the companyName
     */
    public String getCompanyName() {
        return companyName;
    }

    /**
     * @return the senquenceCode
     */
    public String getSenquenceCode() {
        return senquenceCode;
    }

    /**
     * @return the carCode
     */
    public String getCarCode() {
        return carCode;
    }

    /**
     * @return the date
     */
    public Date getDate() {
        return date;
    }

    /**
     * @return the oilConsumption
     */
    public String getOilConsumption() {
        return oilConsumption;
    }

    /**
     * @return the tyre
     */
    public String getTyre() {
        return tyre;
    }

    /**
     * @return the mainEmployee
     */
    public String getMainEmployee() {
        return mainEmployee;
    }

    /**
     * @return the firstEmployee
     */
    public String getFirstEmployee() {
        return firstEmployee;
    }

    /**
     * @param companyName the companyName to set
     */
    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    /**
     * @param senquenceCode the senquenceCode to set
     */
    public void setSenquenceCode(String senquenceCode) {
        this.senquenceCode = senquenceCode;
    }

    /**
     * @param carCode the carCode to set
     */
    public void setCarCode(String carCode) {
        this.carCode = carCode;
    }

    /**
     * @param date the date to set
     */
    public void setDate(Date date) {
        this.date = date;
    }

    /**
     * @param oilConsumption the oilConsumption to set
     */
    public void setOilConsumption(String oilConsumption) {
        this.oilConsumption = oilConsumption;
    }

    /**
     * @param tyre the tyre to set
     */
    public void setTyre(String tyre) {
        this.tyre = tyre;
    }

    /**
     * @param mainEmployee the mainEmployee to set
     */
    public void setMainEmployee(String mainEmployee) {
        this.mainEmployee = mainEmployee;
    }

    /**
     * @param firstEmployee the firstEmployee to set
     */
    public void setFirstEmployee(String firstEmployee) {
        this.firstEmployee = firstEmployee;
    }
    
}
